# coding=utf-8
from pathlib import Path

DIR_PATH = Path(__file__).parent.parent
LOG_DIR = DIR_PATH.joinpath("log")
SOURCE_DIR = DIR_PATH.joinpath("source")
EXPORT_DIR = DIR_PATH.joinpath("export")
UPLOAD_DIR = DIR_PATH.joinpath("upload")


def get_export_dir():
    if EXPORT_DIR.exists():
        return EXPORT_DIR
    EXPORT_DIR.mkdir()
    return EXPORT_DIR


def get_upload_dir():
    if UPLOAD_DIR.exists():
        return UPLOAD_DIR
    UPLOAD_DIR.mkdir()
    return UPLOAD_DIR
